<?php
/**
 * Created by PhpStorm.
 * User: tom_xia
 * Date: 2018/6/20
 * Time: 16:45
 * 录音素材相关视频列表
 */

require_once dirname(__DIR__)."/common.php";

use app\cls\tom\Response;
use app\service\Material;

if(empty($_GET["material_id"])){
    Response::output(-1,"参数错误");
}
$page = isset($_GET["page"]) ? intval($_GET["page"]) : 1;
$page = $page > 0 ? $page : 1;
$pageSize = 4;

$materialService = new Material();
$response = $materialService->getMaterialRecordList($_GET["material_id"],$page,$pageSize);
Response::outputSelf($response);
